Brain Test Weekly Challenge Solution